<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
    <h:head>
       <title>乙方信息</title>
        <script language="javascript">
            function updatePartner(pcode,pname,legalPerson)
            {
		 window.opener.updatePartner(pcode,pname,legalPerson);
                 window.close();
	    }
        </script>
    </h:head>
    <body>
         <h:form>
            <rich:panel header="乙方信息列表">                
                <rich:extendedDataTable id="employeestableid" value="#{partner.partnerlist}" var="emp"
                                        rowClasses="list-row-odd,list-row-even" 
                                        headerClass="table-header" >
                        <rich:column sortBy="#{emp.id}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="代码"/>
                                </h:panelGroup>
                            </f:facet>                      
                                <h:outputText value="#{emp.id}"/>                
                        </rich:column>
                        <rich:column sortBy="#{emp.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="名称"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{emp.name}"/>
                        </rich:column>
                        <rich:column sortBy="#{emp.simplename}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="法人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{emp.legalPerson}"/>
                        </rich:column>
                        <rich:column>
                            <h:commandLink id="employeeslink" onclick="updatePartner('#{emp.id}','#{emp.name}','#{emp.legalPerson}')">
                                <h:outputText value="选择" />
                            </h:commandLink>
                        </rich:column>
                </rich:extendedDataTable>
            </rich:panel>
        </h:form>
</body>
</html>



